<template>
  <div>
    <el-upload
      action=""
      :auto-upload="false"
      :multiple="true"
      :file-list="imageList"
      list-type="picture-card"
      :on-preview="handlePictureCardPreview"
      :on-remove="handleRemove"
    >
      <i class="el-icon-plus"></i>
    </el-upload>
    <el-dialog :visible.sync="dialogVisible">
      <img width="100%" :src="dialogImageUrl" alt="" />
    </el-dialog>
  </div>
</template>
  
  <script>
export default {
  name: "imageUpload",
  data() {
    return {
      dialogImageUrl: "",
      dialogVisible: false,
      disabled: false,
      imageList: [],
    };
  },
  methods: {
    handleRemove(file, fileList) {
      console.log(file, fileList);
    },
    handlePictureCardPreview(file) {
      this.dialogImageUrl = file.url;
      this.dialogVisible = true;
    },
    handleImageChange(file, fileList) {
      this.imageList = fileList;
    },
  },
};
</script>
  